<html>
<head><meta charset="utf-8"><title>LLVM 11 testing · t-compiler/wg-llvm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/index.html">t-compiler/wg-llvm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html">LLVM 11 testing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="201201929"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201201929" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201201929">(Jun 17 2020 at 21:18)</a>:</h4>
<p>Hey all, just want to share that I've been preparing Rust changes for LLVM 11</p>



<a name="201201978"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201201978" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201201978">(Jun 17 2020 at 21:18)</a>:</h4>
<p>in my initial perf test, syn-opt is going from 79.68B instructions to 74.05B</p>



<a name="201202031"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201202031" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201202031">(Jun 17 2020 at 21:19)</a>:</h4>
<p>that's out-of-tree vanilla LLVM 10 vs vanilla LLVM 11 (master), identical build options</p>



<a name="201202191"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201202191" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201202191">(Jun 17 2020 at 21:20)</a>:</h4>
<p>only blocker I have is that the C <code>LLVMTypeKind</code> broke ABI adding <code>LLVMBFloatTypeKind</code> -- I've already reached out to ask for that fixed (moved to the end of the enum)</p>



<a name="201202272"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201202272" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201202272">(Jun 17 2020 at 21:21)</a>:</h4>
<p>when that's settled, I'll open a Rust PR with the changes</p>



<a name="201203554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201203554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201203554">(Jun 17 2020 at 21:33)</a>:</h4>
<p>here's my branch, assuming BFloat is moved to enum value 18<br>
<a href="https://github.com/cuviper/rust/tree/llvm11">https://github.com/cuviper/rust/tree/llvm11</a></p>



<a name="201297353"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201297353" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Popov <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201297353">(Jun 18 2020 at 17:02)</a>:</h4>
<p>Nice! I also started working on this, but got a bit side tracked by opaque pointers. I see you avoided that rabbit hole by using pointer element types.</p>



<a name="201307063"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201307063" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201307063">(Jun 18 2020 at 18:24)</a>:</h4>
<p>yeah, using pointer element types is basically what LLVM did in the deprecated methods we were using before</p>



<a name="201307140"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201307140" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201307140">(Jun 18 2020 at 18:24)</a>:</h4>
<p>I didn't look into whether we need to do something else for opaque pointers in the long term</p>



<a name="201472561"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/201472561" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#201472561">(Jun 20 2020 at 10:46)</a>:</h4>
<p>This would be wonderful for AVR — we have like 30 commits that aren’t in the current Rust fork of LLVM; pulling LLVM head would be easier for us than all the cherry picks 😁</p>



<a name="202944913"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/202944913" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#202944913">(Jul 06 2020 at 00:35)</a>:</h4>
<p>wait opaque pointers are here?</p>



<a name="202944965"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/202944965" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#202944965">(Jul 06 2020 at 00:36)</a>:</h4>
<p>I guess I can go read <a href="https://github.com/rust-lang/rust/pull/73525">https://github.com/rust-lang/rust/pull/73525</a></p>



<a name="202945023"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/202945023" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#202945023">(Jul 06 2020 at 00:38)</a>:</h4>
<p>oh I see this is just being explicit in the instructions</p>



<a name="202945028"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/202945028" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#202945028">(Jul 06 2020 at 00:38)</a>:</h4>
<p>we should try to avoid introspecting LLVM types, just to make it easier on ourselves in the future</p>



<a name="202945039"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/202945039" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#202945039">(Jul 06 2020 at 00:39)</a>:</h4>
<p><code>rustc_codegen_llvm</code> should know the <code>TyAndLayout</code>, although some of the API from <code>rustc_codegen_ssa</code> might need to be updated</p>



<a name="205284982"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/205284982" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#205284982">(Jul 28 2020 at 20:15)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/73526">#73526</a> is now ready with LLVM 11-rc1</p>



<a name="205788720"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/205788720" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#205788720">(Aug 03 2020 at 12:41)</a>:</h4>
<p>I've ran LLVM tests with 32 bit mingw-w64 hoping to find small reproducer for the assertion and that yielded everything but an assertion...<br>
106k lines output: <a href="https://gist.github.com/mati865/076a53a023f4b940fca64343ee095946">https://gist.github.com/mati865/076a53a023f4b940fca64343ee095946</a></p>



<a name="205790471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/205790471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Nikita Popov <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#205790471">(Aug 03 2020 at 13:01)</a>:</h4>
<p>You do have a lot of "PLEASE submit a bug report" which are probably crashes... the output is cut off though.</p>



<a name="205790691"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/205790691" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#205790691">(Aug 03 2020 at 13:03)</a>:</h4>
<p>Those are  legitimate crashes (<code>STATUS_ACCESS_VIOLATION</code>) but I don't think they are useful with broken stacktrace.</p>



<a name="208125321"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/208125321" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#208125321">(Aug 26 2020 at 17:55)</a>:</h4>
<p>now that we landed with <code>rustc/11.0-2020-08-20</code>, we should probably kill the unused <code>rustc/11.0-2020-07-28</code></p>



<a name="208125369"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/208125369" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#208125369">(Aug 26 2020 at 17:56)</a>:</h4>
<p>who has force-push access -- <span class="user-mention" data-user-id="116015">@Alex Crichton</span> ?</p>



<a name="208133457"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/208133457" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#208133457">(Aug 26 2020 at 19:01)</a>:</h4>
<p>I deleted the branch</p>



<a name="208133474"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/208133474" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#208133474">(Aug 26 2020 at 19:01)</a>:</h4>
<p>Updated you <span class="user-mention" data-user-id="138448">@cuviper</span> to an admin role on the repo too</p>



<a name="208133528"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/208133528" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#208133528">(Aug 26 2020 at 19:02)</a>:</h4>
<p>to delete it I just temporarily change the branch protection rule, delete it, and then revert the rule back</p>



<a name="208133657"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/LLVM%2011%20testing/near/208133657" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/LLVM.2011.20testing.html#208133657">(Aug 26 2020 at 19:02)</a>:</h4>
<p>sounds good, thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>